<?php
namespace Modules\Core\Services;

use Illuminate\Support\ServiceProvider;
use Illuminate\Http\Request;
use ThrowException;

use Modules\Core\Helpers\HttpClient;

class ExpressProgressService
{
    public function getProgress($number)
    {
        $url = 'https://ali-deliver.showapi.com';
        $appcode = "2c64651b63494be992120df448bd92ab";

        $path = "/showapi_expInfo?com=auto&nu=" . $number;

        $httpClient = new HttpClient($url);

        $httpClient->get($path, [
            'Authorization' => 'APPCODE '.$appcode
        ]);
    }
}
